<template lang="">
    <div>
        <van-field label='手机号' v-model='mobile'/>
        <van-field label='验证码' v-model='code' style='width:100'/><van-button @click='send'>发送验证码</van-button>
        <van-button>登录</van-button>
    </div>
</template>
<script>
export default {
    data(){
        return{
            mobile:'',
            code:''
        }
    },
    methods: {
        send(){
            this.axios.post('course/sendSms',{'mobile':this.mobile}).then(res=>{
                alert(res.data.mes)
            })
        }
    },
}
</script>
<style lang="">
    
</style>